home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Newton / Books / Make NB5.sit / MAKE NB5 / COMPILE.TXT next >
Encoding:
Text File  |  1994-01-05  |  17.8 KB  |  451 lines  |  [TEXT/MSWD]

  1. How To Make NewtonBooks, Part Five - Compiling Your Books
  2.  
  3. January 5, 1994
  4. Copyright (c) 1994 Tony Lindsey, (xxltony@aol.com). The 
  5. articles in this series may be copied freely, but may not be 
  6. sold unless prior permission is obtained.
  7.  
  8. PREREQUISITES FOR THIS ARTICLE
  9.  
  10. I expect that you have downloaded the previous articles in 
  11. the How2MakeNewtonBooks series. If not, please refer to the 
  12. README.5TH file enclosed with this document to find out 
  13. where they can be found.
  14.  
  15. This is part of an ongoing series of articles. A clever person 
  16. following this series should be able to use these articles to 
  17. create simple books that can be read on a Newton MessagePad 
  18. or other product with Newton Intelligence.
  19.  
  20. I will be assuming that you are attempting the following steps 
  21. on a Macintosh computer, IIcx or later, with a minimum of 8 
  22. megabytes of RAM, running System 7.1.. I also assume that 
  23. you have Newton ToolKit version 1.0b7 and Newton Book 
  24. Maker 1.0b7.
  25.  
  26. MAKING SURE ALL OF THE PARTS ARE IN PLACE
  27.  
  28. First, I will review the proper location of Newton ToolKit (NTK) 
  29. components.  The following instructions apply to version 
  30. 1.0b7, and the instructions may change without notice.  You're 
  31. on your own, in that case.
  32.  
  33. There are parts scattered in various locations, and you may 
  34. not get predictable results if all of the pieces are not present 
  35. and accounted for.
  36.  
  37. If NTK is properly installed, then the System Folder should 
  38. have the following files in the following locations:
  39.  
  40. IN THE FONTS FOLDER (USING SYSTEM 7.1 or later):
  41.  
  42. There should be a suitcase called Newton ToolKit Font.  It's not 
  43. strictly required for our BookMaking tasks.
  44.  
  45. IN THE EXTENSIONS FOLDER:
  46.  
  47. There should be two files that are needed:
  48.  
  49. - Apple Modem Tool (version 1.5 should work file, but slightly 
  50. older versions seem to work fine as well).
  51.  
  52. - AppleTalk ADSP Tool (version 1.01 is satisfactory)
  53.  
  54. I believe that these are only needed if you are planning to 
  55. transfer the completed books over an AppleTalk connection.
  56.  
  57. THE CLARIS FOLDER
  58.  
  59. This is a very important folder within your System Folder.  
  60. BookMaker needs this folder and its contents to read in word-
  61. processor files and interpret their commands for font and 
  62. style changes.
  63.  
  64. Claris (a subsidiary company of Apple Computer) created a 
  65. system that provides a standardized method of reading and 
  66. translating files that were created by completely different 
  67. programs.  The Claris folder is provided free with programs 
  68. such as FileMaker, MacWrite and Claris Works.
  69.  
  70. The Claris folder should contain the following items:
  71.  
  72. - Claris XTND System (version 1.3.6 is nice), and
  73.  
  74. - A folder called Claris Translators.
  75.  
  76. THE CLARIS TRANSLATORS FOLDER
  77.  
  78. This folder should contain files with names like these:
  79.  
  80. MacPaint
  81. MacWrite
  82. Microsoft Word 3.0
  83. Microsoft Word 4-5
  84. Microsoft Word PC 4.0-5.0
  85. Microsoft Works 1.1
  86. Microsoft Works 2.0
  87. Microsoft Works DB
  88. PICT
  89. TIFF
  90. WordPerfect
  91.  
  92. These are the files that allow documents to be recognized and 
  93. translated by BookMaker or any other program that uses the 
  94. Claris XTND system.
  95.  
  96. THE REMAINING FILES
  97.  
  98. Newton ToolKit comes with scads of freebie files that are used 
  99. to demonstrate and illuminate the glory of creating your own 
  100. programs.  I will ignore these demo files in my article, and will 
  101. only mention the components required for compiling books:
  102.  
  103. - Newton Toolkit (version 1.0b7 or later)
  104.  
  105. - Newton Book Maker (version .0b7 or later)
  106.  
  107. - a folder called "Platforms"
  108.  
  109. THE PLATFORMS FOLDER
  110.  
  111. This folder may contain a single file:
  112.  
  113. - MessagePad (no version given)
  114.  
  115. Or, as technology advances, and as more models of the Newton 
  116. arrive with different-size screens, each one should have its 
  117. own, appropriately-named file in the Platforms folder.  I am 
  118. guessing that this folder contains "cheat sheets" that inform 
  119. NTK what size and resolution a Newton's screen may have.
  120.  
  121. MODIFICATIONS TO THE NEWTON TOOLKIT 1.0B7 PROGRAM
  122.  
  123. Before we continue, it might be a good idea to check to see 
  124. what version of NTK we are using.  Click once on the Newton 
  125. ToolKit program and choose "Get Info" under the File menu.  It 
  126. might say Version: 1.0b7 (the seventh beta version of NTK).  
  127. Later versions (such as 1.0) should not need the following bug 
  128. fix.
  129.  
  130. BIG BOOK BUG FIX
  131.  
  132. Here's how the bug shows up: when compiling a long book 
  133. (over about 300 pages, or about 200k in size), NTK runs out of 
  134. "FrameStorage Heap" or some such thing, and suggests we 
  135. increase it.  Increasing memory to NTK does not solve this, 
  136. because it still stops at the same place, refusing to proceed.
  137.  
  138. This one has an easy answer:
  139.  
  140. - Make a backup copy of Newton ToolKit
  141.  
  142. - Open NTK with ResEdit
  143.  
  144. - Hit the letter "H" on your keyboard.  This highlights the 
  145. "HEAP resource icon.
  146.  
  147. - double-click on the HEAP icon.  You'll see two choices.
  148.  
  149. - double-click on each one, change its number to 2048, and 
  150. close its window.
  151.  
  152. - Quit from ResEdit.  When asked if you want to save changes, 
  153. choose "Yes"
  154.  
  155. You should see no adverse effects.  You are on your own.
  156.  
  157. COMPILING YOUR BOOK
  158.  
  159. Here is every step used to compile NewtonBooks.  I am 
  160. assuming that you have the final "GRANGE.DOC" file I included 
  161. in the first collection of files in the How2MakeNewtonBooks 
  162. series.  I will use it in the following example:
  163.  
  164. - Drag the fully-formatted MS Word file called "GRANGE.DOC" 
  165. into BookMaker, and then click on the "Do it" button.
  166.  
  167. -Wait awhile, then when offered the chance to save a file, click 
  168. on the Desktop button and save the default filename.  This 
  169. file's name should automatically end with ".f"  This creates an 
  170. "intermediate" file, which can be thrown away later when the 
  171. package-making process is complete.  Example: "GRANGE.DOC.f"
  172.  
  173. - Wait some more, and when the watch cursor disappears, quit 
  174. BookMaker and then begin using Newton ToolKit.
  175.  
  176. - When offered the chance to open an existing file, click Cancel.
  177.  
  178. - Under the Project menu, choose "New Project"
  179.  
  180. - Click on Desktop, and give the new file an appropriate name 
  181. that ends with a .PRJ (shorthand for Project, and totally 
  182. unnecessary, but it helps distinguish among many files).  
  183. (Example: GRANGE.PRJ) This creates yet another "intermediate" 
  184. file that we will be throwing away later.
  185.  
  186. - Under the Project menu, choose Add Book File.  Double-click 
  187. on the filename that ends with ".f"  This adds the only file we 
  188. need for this project.
  189.  
  190. - Under the Project menu, choose "Package Settings"
  191.  
  192. - In the middle of the dialog box, you'll see "ChangeMe:Sig"  
  193. This is where you are supposed to identify the package as well 
  194. as yourself.  The information you put here is what shows up in 
  195. the "Remove Software" dialog on your Newton. The part that 
  196. says "ChangeMe" should contain a nice, short version of the 
  197. book's name.  Try to keep it under nine characters.  In the 
  198. example of "The Adventure of the Abbey Grange", I chose to 
  199. use "Grange"
  200.  
  201. Apple has a registry of programmer's identifiers that go where 
  202. the word "Sig" goes. For this example, the folks helping me 
  203. with my many, many books would put "Grange:NewtBoy" 
  204. NewtBoy is just a distinctive name I chose.
  205.  
  206. - Click on "OK".  There are other settings that could be changed, 
  207. but they are outside of the purpose of this article, which is to 
  208. make a book with as few steps as possible.
  209.  
  210. - The final step:  Under "Project", choose "Build Package" and 
  211. then wait for the watch cursor to go away. 
  212.  
  213. - Quit from NTK.
  214.  
  215. After that, do some cleanup... Throw away the GRANGE.f and 
  216. GRANGE.PRJ files, and tidy up around the place.  You should 
  217. find a file called GRANGE.PROJ.PKG in the same location.  That's 
  218. your book!  
  219.  
  220. - Rename the book to adhere to the PC world's file-naming 
  221. conventions.  There should be a maximum of 8 characters 
  222. before the period. In this case, it would be called 
  223. "GRANGE.PKG."  I specify renaming it this way because I 
  224. assume that you want to share your new book with as many 
  225. folks as possible.  According to a recent MacWeek magazine 
  226. article, 40% of all Newton owners use an IBM-compatible 
  227. computer.
  228.  
  229. WHAT TO DO WITH YOUR PACKAGE FILE
  230.  
  231. Of course, the first thing you'll want to do is load it onto your 
  232. Newton. There are several ways of doing so.  I've found that 
  233. the simplest way is to use the program called "Package 
  234. Express" that comes with Newton ToolKit.
  235.  
  236. - Make sure that your Newton is correctly connected to the 
  237. Mac.  I personally have my Mac, my laser printer and my 
  238. Newton connected with three Farallon PhoneNet connectors.  
  239. This AppleTalk connection allows me to reserve my Phone 
  240. port for my modem.  I'm assuming that you have the same 
  241. setup.  If so, make sure that you have two terminating 
  242. resistors plugged into each end of your mini-network.  They 
  243. came free with the PhoneNet connectors. 
  244.  
  245. - If all physical connections are made, turn on your Newton
  246.  
  247. - Tap on Extras
  248.  
  249. - Tap on Connection
  250.  
  251. - Make sure that "Macintosh LocalTalk" is selected
  252.  
  253. - Tap on "Choose Macintosh"
  254.  
  255. - On the Mac, drag GRANGE.PKG into Package Express's icon.  
  256. As soon as you see the striped bar moving in the dialog box, 
  257. grab the Newton.
  258.  
  259. - On the Newton, look to see if your Mac's name shows up as 
  260. highlighted text.  If so, tap on "Connect." If not, tap on "More 
  261. Choices", wait for your Mac's name to show up, and then tap 
  262. "Connect".  If NO name shows up, maybe you never got around 
  263. to naming your Mac.  To name your Mac, you need to quit 
  264. from Package Express, pull down the Apple menu, go to your 
  265. Control Panels, choose Sharing Setup, fill in the first and third 
  266. fields, close the window and then restart the Mac.  This tells 
  267. System 7 to start announcing itself on networks when asked to 
  268. by programs like Package Express. After restarting, try these 
  269. steps again.
  270.  
  271. - After tapping "Connect" you might see an error message on 
  272. the Mac.  This is utterly normal with the Package Express that 
  273. came with NTK 1.0b7.  Just hit the Return key on your 
  274. keyboard and the book should load just fine.  You could also 
  275. use Newton Connection Kit or Newton ToolKit to load the book 
  276. package, but this is the simplest technique.
  277.  
  278. CHECKING FOR FLAWS IN YOUR BOOK
  279.  
  280. Assuming that you have gotten this far successfully, you 
  281. should be able to tap on your Newton's Extras drawer icon.  I 
  282. am assuming that you have compiled the GRANGE.DOC file I 
  283. included with my first article in this series. I will now provide 
  284. a checklist of flaws to watch out for:
  285.  
  286. - You should see a book icon with a SHORT (maximum 10 
  287. characters) name beneath it.  If it's any longer, it won't be 
  288. readable when other packages have long names on either side.  
  289. This can be changed by modifying the .shortname dot 
  290. command in the GRANGE.DOC file and recompiling.
  291.  
  292. - Tap on your book's icon.  You should see an attractive title 
  293. page (with a nice picture of Sherlock Holmes if you're looking 
  294. at GRANGE.PKG).  There should be no tiny, bold title at the 
  295. extreme top line of the first page.  If there is, try adding the 
  296. "notitle" modifier to the title page's .layout command, like this:
  297.  
  298. .layout title 12 notitle
  299.  
  300. - Tap the Overview dot between the arrows at the bottom of 
  301. the Newton's screen.  You should see the book's title and the 
  302. "Publisher's Notes" if you are looking at GRANGE.PKG, or a nice 
  303. collection of chapter headings if you are reading a book with 
  304. chapters.
  305.  
  306. - Close the Overview drawer, and tap the down arrow to flip 
  307. through the book's pages. You should have no trouble reading 
  308. the text, due to tiny size or awkwardly-laid-out paragraphs.  
  309. The text should be easily readable.  I personally favor the 12-
  310. point Fancy (New York) font.  It means more pages, but you 
  311. should never assume that everyone has eyesight as sharp as 
  312. yours.  There are a lot of aging Baby Boomers out there!
  313.  
  314. If possible, hand the book over to a friend for proofreading.
  315. I admit I've neglected this step in the past.  After working on
  316. a book for a long time, I hate to stare at it to look for flaws.
  317. My eyes cross, and I want to go take a nap.  A friend will help
  318. you spot stuff like "Sherlock Holrnes" , which is an actual typo
  319. I missed the first time around.
  320.  
  321. - Check to see if there any text is italicized.  If so, take a good 
  322. look at how awful it appears.  Avoid it at all costs!  I know 
  323. that bold or underlined text is a poor substitute, but give it a 
  324. try.  Alternately, consider using the Simple (Geneva) font as a 
  325. final possibility.
  326.  
  327. - Paragraphs should have a blank line between them.  If you 
  328. leave these out, the text becomes uniform, with no visual 
  329. breaks for your eyes to distinguish where they are.  If you 
  330. glance away, the act of looking for your place again becomes a 
  331. chore.
  332.  
  333. - Check to make sure that chapters break up the text properly.  
  334. I have seen NewtonBooks that were never checked for this, 
  335. and the end of one chapter and the beginning of another didn't 
  336. look right, with blank pages or run-on text.
  337.  
  338. - Look for curly quotes and apostrophes.  They are optional, 
  339. but the details do count.  Look for double-hyphens.  They 
  340. should not exist, instead having been replaced by em-dashes.  
  341. The Newton has the design goodness to include these, so why 
  342. not use them?
  343.  
  344. I'm sure that there are many, many other things that could go 
  345. wrong with your books, but only you can spot them, since you 
  346. are the publisher of your own books.  Use your own standards, 
  347. but do your best!
  348.  
  349. WHY YOU SHOULD SHARE YOUR BOOK WITH THE WORLD
  350.  
  351. Let's say that your newest NewtonBook is a work of art.  
  352. You're proud of what you have done, and you want to share it 
  353. with as many folks as possible.  I have found America Online's 
  354. Palmtop Paperbacks section (Go to Keyword "PDA") to be the 
  355. largest library of NewtonBooks in existence as of this writing.
  356.  
  357. I would like to ask you to share your books because it helps 
  358. many, many more people than you could imagine.  Think of a 
  359. classroom full of kids in 1996, using the "Tom Sawyer" book 
  360. on their inexpensive slate computers.  The teacher would tap a 
  361. single button on a screen, and every child would get a copy of 
  362. the book at that moment.
  363.  
  364. I leave it up to YOU whether you want to ask for a shareware 
  365. fee, or keep the book as free as the breeze.  Personally, I'm 
  366. very idealistic, and have never asked for a fee for any of the 
  367. books I've created. I've been downloading texts from America 
  368. Online and other bulletin boards, and re-issuing them in 
  369. NewtonBook format.  I feel that it would be wrong for me to 
  370. take another person's work and charge for it.  Some day, I will 
  371. be writing my own books in NewtonBook format, and I haven't 
  372. yet figured out the way I'll merchandise them.
  373.  
  374. CREATING AN INFORMATION FILE
  375.  
  376. I have a lot of experience with uploading articles and other 
  377. creations.  They have a way of whisking out of your control in 
  378. ways that you would never expect.  People may download 
  379. your file long after you have forgotten about it, in places like 
  380. Singapore and the Ukraine.  I think of myself as a mother sea 
  381. turtle, who distributes her eggs and never sees them again.  If 
  382. this concept doesn't bother you, you should consider the needs 
  383. of the folks who get your document.
  384.  
  385. FILE NAMING CONSIDERATIONS
  386.  
  387. If you are willing to share the book you've created, you should 
  388. consider non-Mac Newton users.  They can't always deal with 
  389. long filenames with funny characters or spaces.  They also 
  390. need to acquire the book file in a compressed format that they 
  391. can decompress with no problems.
  392.  
  393. I always include an INFormation file with my books.  I also 
  394. compress the two files with Stuffit Deluxe.  I also might 
  395. include the original word-processing file I used to create the 
  396. book, just so beginners could study how I did it. You can see 
  397. an example of this on AOL in the "Nude Beaches of California" 
  398. file I uploaded.
  399.  
  400. When creating an INFormation file, I make sure it's a PC-
  401. compatible ASCII text file with linefeeds.  I explained how to 
  402. do this at the end of FILTER.DOC, which is part of the 
  403. How2MakeNewtonBooks #3 article on AOL.  I also make sure it 
  404. has the same sort of name as the book.  For example, I would 
  405. have a book called "GRANGE.PKG", and an INFormation file 
  406. called "GRANGE.INF."
  407.  
  408. I would use Stuffit Deluxe to store the both of those files in an 
  409. archive called "GRANGE.SIT."  I like Stuffit Deluxe because it's 
  410. available on both the PC and Mac platforms, and America 
  411. Online will automatically decompress the files after 
  412. downloading.  Compressing the files saves money spent on 
  413. downloading time, and it keeps the appropriate files together.
  414.  
  415. Stuffit Deluxe is available from many mail-order and software 
  416. retailers.
  417.  
  418. Using Stuffit Deluxe, I would choose "New" under the File 
  419. menu, type in a filename like GRANGE.SIT, and then click on 
  420. the "Stuff" icon.  I would then double-click on GRANGE.PKG and 
  421. GRANGE.INF. and then click on the "Stuff" button.  After 
  422. quitting, I'm ready to upload the GRANGE.SIT file.
  423.  
  424. UPLOADING ONTO AMERICA ONLINE
  425.  
  426. I upload my files by following this procedure:
  427.  
  428. I sign on to AOL, and choose "Key word" under the "Go To" 
  429. menu.  Type "PDA" and hit return.  Click on "New Files & Free 
  430. Uploading" and click on the "Upload File" button, and fill out 
  431. the form.  If you're not sure how to phrase any of the words 
  432. you put in these fields, just copy what I've done with any of 
  433. my files like "Nude Beaches of California".
  434.  
  435. -------------
  436.  
  437. This concludes the first five installments of this series.  I have 
  438. tentatively planned a sixth article for some future date, 
  439. including a few corrections and additional tips.  I will also 
  440. make it my business to learn more dot commands.  I will be 
  441. uploading more-elegant books, but I will also enclose the 
  442. documents I used to create these books.  I hope that this will 
  443. encourage others to publish ever-nicer books.
  444.  
  445. I don't know what the future holds, but it is my fervent wish 
  446. to see massive numbers of books available for the people of 
  447. the world.  Let's all do our part!
  448.  
  449. Tony Lindsey, San Diego, California, Wednesday, January 5, 
  450. 1994.
  451.  
  452.